<template>
  <div>
    <!-- 查看门店 -->

    <!-- 面包屑导航 -->
    <Crumbs></Crumbs>
    <!-- 门店表单  -->
    <el-form ref="form" :model="form" label-width="120px" >
        <el-form-item label="门店名称">
            {{row.storename}}
        </el-form-item>
        <el-form-item label="门店图片">
            <el-image style="width:200px" :src="row.storeimg"></el-image>
        </el-form-item>
        <el-form-item label="省市区">
            {{row.position}}
        </el-form-item>
        <el-form-item label="门店经纬度" >
            116°
        </el-form-item>
        <el-form-item label="门店地址">
            回龙观街道
        </el-form-item>
        <el-form-item label="门店电话">
            010-123425
        </el-form-item>
        <el-form-item label="营业时间">
            7:00 - 18:00
        </el-form-item>
        <el-form-item label="门店支持">
            <el-checkbox-group v-model="form.type">
                <el-checkbox label="支持自提" name="type"></el-checkbox>
                <el-checkbox label="支持外卖" name="type"></el-checkbox>
            </el-checkbox-group>
        </el-form-item>
        <el-form-item label="联系人信息" >
            <span>姓名:老王&nbsp;&nbsp; 电话:1241254554</span>
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onSubmit">返回列表</el-button>
        </el-form-item>
    </el-form>
    
  </div>
</template>

<script>
import Crumbs from '../Crumbs.vue';
export default {
 
    data() {
        return {
            // 门店表单
            form: {
                name: '',
                region: '',
                date1: '',
                date2: '',
                delivery: false,
                type: [],
                resource: '',
                desc: '',
            },
            row:""
        }
    },
    methods: {
      onSubmit() {
        this.$router.push('/storeAdmin')
      },
    },

created(){
    if(this.$route.params.list == undefined){
        this.$router.push("/storeAdmin")
    }else{
        this.row = this.$route.params.list
    }
},

    components: { Crumbs }
}
</script>

<style lang="scss" scoped>

</style>